﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// erp仓库表
    /// </summary>
    [Table("T_Stock")]
    public class Stock : BaseEntity
    {
        //仓库编码
        [MaxLength(50)]
        public string StockCode { get; set; }
        //仓库名称
        [MaxLength(50)]
        public string StockName { get; set; }
        //仓库类型（普通仓/VMI仓/待检仓/代管仓）
        [MaxLength(50)]
        public string StockType { get; set; }
        //仓库属性（良品仓/不良品仓/在检品仓）
        [MaxLength(50)]
        public string StockProperty { get; set; }
        //是否进行仓位管理（0：不启用/1：启用）
        public int IsSPManage { get; set; }
        //仓位组代码，启用仓位管理必填
        [MaxLength(50)]
        public string SPGroupCode { get; set; }
        //仓位组名称，启用仓位管理必填
        [MaxLength(50)]
        public string SPGroupName { get; set; }
        [NotMapped]
        public List<Stock> Children { get; set; }
    }
}
